import request from "@/utils/request";

// 查询大区列表
export function listPost_region(query) {
  return request({
    url: "/system/region/list",
    method: "get",
    params: query,
  });
}
// 查询大区详细
export function getPost_region(postId) {
  return request({
    url: "/system/region/" + postId,
    method: "get",
  });
}
// 新增
export function addPost_region(data) {
  return request({
    url: "/system/region",
    method: "post",
    data: data,
  });
}
// 修改
export function updatePost_region(data) {
  return request({
    url: "/system/region",
    method: "put",
    data: data,
  });
}
// 删除
export function delPost_region(id) {
  return request({
    url: "/system/region/" + id,
    method: "delete",
  });
}
